using FairyGUI;
using ZFramework.Runtime;

namespace ZGame
{
    public class TestFGuiUIFormLogic : FGuiUIFormLogicBase
    {
        public override string UIPackageName => "Alliance";

        public override string UIComponentName => "UIAllianceMain";
        
        public override void OnInit(object userData)
        {
            base.OnInit(userData);
            var com = UI.GetChild("_comTitle").asCom;
            com.GetChild("_return").asButton.onClick.Set(delegate(EventContext context)
            {
                Log.Error("点击了按钮！！！");
                //GameEntry.uiMgr.OpenUI("Assets/Res/FGUI/UIMain.prefab", "1111", true, null);
                
                //GameEntry.uiMgr.CloseUI(UiForm);
                GameEntry.uiMgr.OpenUI<UITreasureDraw>( "Normal", true, null);
            });
        }

        
    }
}